package com.team11.server.service;

import com.team11.server.pojo.Homework;
import com.baomidou.mybatisplus.extension.service.IService;
import com.team11.server.pojo.dto.CheckWork;
import com.team11.server.pojo.dto.RespBean;
import com.team11.server.pojo.dto.StudentAnswer;
import com.team11.server.pojo.dto.WorkTask;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author pjc
 * @since 2021-06-17
 */
public interface IHomeworkService extends IService<Homework> {

    /**
     * 获取学生答题列表
     *
     * @param homeworkId
     * @return
     */
    StudentAnswer getStudentAnswer(Integer homeworkId);


    /**
     * 获取老师检查作业列表
     *
     * @param homeworkId
     * @return
     */

    CheckWork getCheckWork(Integer homeworkId);

    /**
     * 老师检查作业
     * @param checkWork
     * @param files
     * @param request
     * @return
     */
    RespBean CheckWork( CheckWork checkWork, MultipartFile[] files, HttpServletRequest request);
}
